﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RoboRace_Shared
{
    public interface IBoard
    {
        List<Wall> Walls { get; }
    }

    [Serializable]
    public class Board : IBoard
    {
        private int _rows;
        private int _columns;
        private List<Wall> _walls;

        public List<Wall> Walls { get { return _walls; } }

        public Board(int rows, int columns)
        {
            _rows = rows;
            _columns = columns;
        }

        public Board(int rows, int columns, List<Wall> walls)
        {
            _walls = walls;
        }
    }

    [Serializable]
    public class Coordinate
    {
        private int[] coord;

        public Coordinate()
        {
            coord = new int[2];
            coord[0] = 0;
            coord[1] = 0;
        }

        public Coordinate(int x, int y)
        {
            coord = new int[2];
            coord[0] = x;
            coord[1] = y;
        }

        public int X { get { return coord[0]; } set { coord[0] = value; } }
        public int Y { get { return coord[1]; } set { coord[1] = value; } }
    }
}
